package org.csmzxy.class2333;
import java.util.Scanner;

public class demo {

   public  static void main(String args[]){
       int productId = 1001;
       String productName = "手机";
       double price = 2999.9;
       boolean isAvailale = true;
       char category = 'E';
       short inentory = 500;
       long quantity = 1234567890123L;
       float discount = 0.8f;
       byte life = 10;

       System.out.println("商品编号：" + productId);
       System.out.println("商品名称：" + productName);
       System.out.println("商品价格：" + price);
       System.out.println("是否可用：" + isAvailale);
       System.out.println("商品分类：" + category);
       System.out.println("库存数量：" + inentory);
       System.out.println("已售数量：" + quantity);
       System.out.println("商品折扣：" + discount * 100 + "%");
       System.out.println("使用寿命：" + life);

     /**Scanner scanner = new Scanner(System.in);
       System.out.println("请输入您的名字:");
       String name = scanner.nextLine();
       System.out.println("您好:" + name + "!");
      */
   }
}


